package com.spark.test;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/my")
public class MyController {

    @Autowired
    private MyService service;

    @RequestMapping("/index")
    public String index(@RequestBody Map<String,String> map){
        return service.getData();
    }
}
